package domain.entities;

import javax.persistence.*;

import static javax.persistence.GenerationType.IDENTITY;

/**
 * Created with IntelliJ IDEA.
 * User: scamisay
 * Date: 10/3/12
 * Time: 4:37 PM
 * To change this template use File | Settings | File Templates.
 */
@Entity
public class Fee {
    private int id;
    private String amount;
    private String methodOdPayment;
    private ComiteEtica.YesNo shouldBePaidBeforeDocumentSubmission;
    private String contactInTheCommittee;
    private String contactPhone;

    public Fee(){}

    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "id", unique = true, nullable = false)
    public Integer getId() {
        return this.id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAmount() {
        return amount;
    }

    public void setAmount(String amount) {
        this.amount = amount;
    }

    public String getMethodOdPayment() {
        return methodOdPayment;
    }

    public void setMethodOdPayment(String methodOdPayment) {
        this.methodOdPayment = methodOdPayment;
    }

    @Enumerated(EnumType.ORDINAL)
    public ComiteEtica.YesNo getShouldBePaidBeforeDocumentSubmission() {
        return shouldBePaidBeforeDocumentSubmission;
    }

    public void setShouldBePaidBeforeDocumentSubmission(ComiteEtica.YesNo shouldBePaidBeforeDocumentSubmission) {
        this.shouldBePaidBeforeDocumentSubmission = shouldBePaidBeforeDocumentSubmission;
    }

    public String getContactInTheCommittee() {
        return contactInTheCommittee;
    }

    public void setContactInTheCommittee(String contactInTheCommittee) {
        this.contactInTheCommittee = contactInTheCommittee;
    }

    public String getContactPhone() {
        return contactPhone;
    }

    public void setContactPhone(String contactPhone) {
        this.contactPhone = contactPhone;
    }
}
